package com.cssp.dao.hibernate;

import java.util.List;

import com.cssp.dao.ITaskClassifyDao;
import com.cssp.dao.hibernate.base.HibernateBaseDao;
import com.cssp.model.witkey.TaskClassify;

public class TaskClassifyDao extends HibernateBaseDao<TaskClassify> implements
		ITaskClassifyDao {  
	
	
	public TaskClassify findByName(String name){
		String hql="FROM TaskClassify WHERE name=?";
		List<TaskClassify> list=findByHql(hql, name);
		if(!list.isEmpty()){
			return list.get(0);
		}
		return null;
	}

}
